#__tcp_select_window
p $tmp=0
while $tmp<$cpu_number
  eval "tvariable $per_cpu_c_%d",$tmp
  eval "tvariable $per_cpu_c1_%d",$tmp
  eval "tvariable $per_cpu_go_%d",$tmp
  eval "tvariable $per_cpu_tmp_%d",$tmp
  p $tmp=$tmp+1
end


list tcp_rcv_established
trace 5322
  commands
    teval $per_cpu_c_0=$per_cpu_c_0+1
    teval $per_cpu_go_0=1
    teval $per_cpu_tmp_0=((struct tcp_sock *)sk)->rcv_wnd
  end

trace tcp_output.c:1771 if ($per_cpu_go_0 && ($rax & 0xffffffff) >= $per_cpu_tmp_0)
  commands
    teval $per_cpu_c1_0=$per_cpu_c1_0+1
  end

trace tcp_output.c:1771 if ($per_cpu_go_0 && ($rax & 0xffffffff) >= $per_cpu_tmp_0)
  commands
    collect $rax
    collect $per_cpu_tmp_0
  end

list e1000_receive_skb
trace 774
  commands
    teval $per_cpu_go_0=0
  end

define showall
p $per_cpu_c_0
p $per_cpu_c1_0
end
